package cn.edu.cqytxy.entity;

/**
 * 运输机
 *
 * @author yinjw
 */
public class Transport extends Aircraft{

    public final static String TYPE = "运输机";
    public final static String SPECIAL = "载重量";

    /**
     * 载重量
     */
    private String capacity;

    /**
     * 执行任务
     *
     * @param num   执行数量
     */
    @Override
    public void toTask(Integer num) {
        System.out.println("派出了"+num+"架"+ this.getName() + "运输机进行运输任务执行");
    }

    public String getCapacity() {
        return capacity;
    }

    public void setCapacity(String capacity) {
        this.capacity = capacity;
    }
}
